//
//  PriceCell.m
//  Zhiche-Carriage
//
//  Created by LeeBruce on 16/6/14.
//  Copyright © 2016年 LeeBruce. All rights reserved.
//

#import "PriceCell.h"


@implementation PriceCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self initSubViews];
    }
    
    return self;
}

-(void)initSubViews
{
    
    self.firstLabel = [[UILabel alloc]initWithFrame:CGRectMake(18, 0, 100, cellHeight)];
    self.firstLabel.textColor = littleBlackColor;
    self.firstLabel.font = Font(13);
    [self.contentView addSubview:self.firstLabel];
//    self.firstLabel.text = @"运费";
    
    
    self.shouldLabel = [[UILabel alloc]initWithFrame:CGRectMake(screenWidth - 15 - 200, 0, 200, cellHeight)];
    self.shouldLabel.font = Font(13);
    self.shouldLabel.textAlignment = NSTextAlignmentRight;
    [self.contentView addSubview:self.shouldLabel];
    self.shouldLabel.textColor = YellowColor;
    self.shouldLabel.text = @"￥1200元";
//    [self.shouldLabel sizeToFit];
    
    
//    self.actualLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.shouldLabel.frame) + 10 * kWidth, 0, 100 * kWidth, cellHeight)];
//    self.actualLabel.font = Font(15);
//    [self.contentView addSubview:self.actualLabel];
//    self.actualLabel.text = @"已收:99999元";
//    self.actualLabel.textAlignment = NSTextAlignmentLeft;

}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
